﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PlaylistGenerator_v1._0
{
    public partial class FormPrincipal : Form
    {
        private Boolean isFormGeraAberto;
        public Boolean IsFormGeraAberto
        {
            get { return isFormGeraAberto; }
            set { isFormGeraAberto = value; }
        }


        public FormPrincipal()
        {
            InitializeComponent();
        }

        private void novoPlaylistToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!IsFormGeraAberto)
            {
                FormGeraPlaylist formGera =
                    new FormGeraPlaylist();
                formGera.MdiParent = this;
                formGera.WindowState = FormWindowState.Maximized;
                formGera.Show();
                IsFormGeraAberto = true;
            }
        }
    }
}
